home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4143 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ns.ftns.no!news
  2. From: kenneth@norconnect.no (Kenneth C. Nilsen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Shared library open and close functions
  5. Date: 17 Feb 1996 17:23:31 GMT
  6. Organization: A poorly-installed InterNetNews site
  7. Message-ID: <935.6621T819T991@norconnect.no>
  8. References: <510.6619T1238T1638@Th0r.foo.bar>
  9. NNTP-Posting-Host: norconnect.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. The 15-Feb-96 20:40:20, Christopher Naas wrote in msg n/a : 
  13.  
  14. >How do I add functions to a shared library that are called the first time the
  15. >library is opened and when the library is removed from memory?
  16. >I want one function that is called the first time the library is opened, and
  17. >one function that is called when the library is closed by the last user and
  18. >it is flushed from memory.
  19.  
  20. 1) You have to make the library yourself cause OpenLibrary() calls a init
  21. when a library is opened for the first time and this can't be added
  22. inbetween. You can not use exec.library functions for this purpose.
  23.  
  24. 2) You have to patch the OpenLibrary()/CloseLibrary() vector to call routines
  25. when your library is opened/closed, tho I will not recommend this.
  26.  
  27.  
  28. ---
  29. Worldwide Solutions AS  \        Kenneth C. Nilsen (kenneth@norconnect.no)
  30.     Advisor, developer   \/\/\/\        http://www.norconnect.no/~kenneth/
  31.            coordinator          \
  32.  
  33.